package net.wanho.dao.impl;

import net.wanho.dao.UserDao;
import net.wanho.entity.User;
import org.wanho.jdbc.JdbcTemplate;
import org.wanho.jdbc.JdbcUtil;

import java.sql.Connection;

/**
 * Author：汤小洋
 * Date：2025-09-03 15:05
 * Description：<描述>
 */
public class UserDaoImpl implements UserDao {

    private JdbcTemplate<User> jt = new JdbcTemplate<>();

    @Override
    public void insert(User user) {
        String sql = "insert into user(name,phone,address,status) values(?,?,?,?)";
        jt.update(sql, user.getName(), user.getPhone(), user.getAddress(), user.getStatus());
    }
}
